package fuxi1;

public class Teacher {
    String name;
    int age;
    String gender;
    String suject;

    public  Teacher(){

    }
    public Teacher(String name,int age,String gender,String subject){
        this.name=name;
        this.age=age;
        this.gender=gender;
        this.suject=subject;

    }

    public void teach(){
        System.out.println(name+"老师教"+suject);
    }

}
